<template>
    <div class="login-container">
         <div class="login-left">
            <img src="../assets/imgs/login_img.png">
         </div>
         <div class="login-right">
            <!-- 头像 -->
            <div class="avatar-box">
                <img src="../assets/imgs/login_logo.png">
            </div>
            <!-- 标题 -->
            <div class="title">
                 电商后台管理系统
            </div>
            <!-- 登录表单 -->
            <div class="login-form">
                <el-form ref="loginFormRef" :model="loginForm" :rules="loginFormRules">
                    <el-form-item prop="username">
                        <el-input v-model="loginForm.username" prefix-icon="el-icon-user" placeholder="请输入用户名"></el-input>
                    </el-form-item>
                    <el-form-item prop="password">
                        <el-input v-model="loginForm.password" prefix-icon="el-icon-lock" placeholder="请输入密码" type="password"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="" class="login-btn">登录</el-button>
                    </el-form-item>
                </el-form>
            </div>
         </div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            loginForm:{},
            loginFormRules:{}
        }
    }
}
</script>

<style scoped>
.login-container{
    background: #93defe;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-left{
    margin-right: 100px;
}
.login-right{
    width: 400px;
    height: 350px;
    background: white;
    border-radius: 5px;
    box-sizing: border-box;
    position: relative;
}
.avatar-box{
    width: 120px;
    height: 120px;
    border: 5px solid #93defe;
    border-radius: 100px;
    background: white;
    text-align: center;
    line-height: 120px;
    position: absolute;
    top: -60px;
    left: 140px;
}
.title{
    position: absolute;
    top: 100px;
    left: 120px;
    font-size: 20px;
}
.login-form{
    position: absolute;
    top: 150px;
    left: 50px;
    width: 300px;
}
.login-btn{
    width: 100%;
}

</style>